package com.uinfor.controlle;

import com.uinfor.entity.Moudle;
import com.uinfor.entity.Result;
import com.uinfor.service.IMoudleService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.core.annotation.Order;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @descripttion:
 * @Author: WZH
 * @Date :2021/2/5  15:28
 **/
@RestController
@Slf4j
public class OrderController {
    @Resource
    private IMoudleService iMoudleService;

    @GetMapping("/order/create")
    public Result create(Moudle moudle){
        iMoudleService.create(moudle);
        return new Result(200,"订单创建成功");
    }
}
